package org.example.provider.rest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jie.luo
 * @description
 * @since 2020-06-16
 */
@RestController
public class ProviderRest {

    @GetMapping("/hello")
    public String helloProvider() {
        return "hello provider";
    }

    @GetMapping("/user")
    public String getUserName(@RequestParam(name = "userId") Integer id){
        return "username is openfeign";
    }

}
